/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Interface;

import Pojo.Contract;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author knyazev_o
 */
public interface InterfaceContract {    
    public boolean register(Session session, Contract contract)throws Exception;
    public List<Contract> getAll(Session session)throws Exception;
    public List<Contract> getAllMy(Session session, Long employees_id)throws Exception;
    public Contract getByIdContract(Session session, Long id)throws Exception;
    public String getNumberYear(Session session) throws Exception;
}
